$(function(){
    $("#search").click(function(){
        var text = $("#text").val()
        var link = "https://www.baidu.com/s?wd="
        var address = link+text
        window.open(address)
    })
})